package com.dudy.authdemo.vo;

import com.dudy.common.base.PageData;

import java.util.List;

public class RolePermissionVO extends PageData<RolePermissionVO> {
    private Long id;

    /**
     * 权限类型：0：菜单
     */
    private Byte permissionType;

    private Long permissionValue;

    private String roleCode;

    private List<Long> permissionIds;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取权限类型：0：菜单
     *
     * @return permission_type - 权限类型：0：菜单
     */
    public Byte getPermissionType() {
        return permissionType;
    }

    /**
     * 设置权限类型：0：菜单
     *
     * @param permissionType 权限类型：0：菜单
     */
    public void setPermissionType(Byte permissionType) {
        this.permissionType = permissionType;
    }

    public Long getPermissionValue() {
        return permissionValue;
    }

    public RolePermissionVO setPermissionValue(Long permissionValue) {
        this.permissionValue = permissionValue;
        return this;
    }

    /**
     * @return role_code
     */
    public String getRoleCode() {
        return roleCode;
    }

    /**
     * @param roleCode
     */
    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode == null ? null : roleCode.trim();
    }

    public List<Long> getPermissionIds() {
        return permissionIds;
    }

    public RolePermissionVO setPermissionIds(List<Long> permissionIds) {
        this.permissionIds = permissionIds;
        return this;
    }
}